
<template>
  <div>
      <ul>
          <li v-for="i in list" :key="i">{{i.name}}---------<router-link :to="'/setparams?workid='+i.id">参数配置</router-link></li>
      </ul>
  </div>
</template>

<script>
import axios from '../../http/axios'
export default {
data () {
    return {
        list:[]
    }
},
methods: {
    get_list(){
    axios('/work','get').then(res=>{
        console.log(res)
        this.list=res.list
    })
},
},
mounted () {
    this.get_list()
}

}
</script>

<style>

</style>